$(document).ready(function() {
    $(".math").each(function(i) { $(this).html("<table><tr><td class=\"formular\"><img src=\"http://latex.codecogs.com/png.latex?" + this.innerHTML + "\"/></td><td align=\"right\"><span class=\"number\"></span></td></tr></table>"); });
});
$(document).ready(function() {
    $(".imath").each(function(i) { $(this).html("<img src=\"http://latex.codecogs.com/png.latex?" + this.innerHTML + "\"/>"); });
});
